﻿
@{
    ViewBag.Title = "自定义开发模板";
    Layout = "~/Views/Shared/_CodeBulidForm.cshtml";
}

@Html.AppendCssFile("/Areas/LR_CodeGeneratorModule/Views/TemplatePC/FastCodeIndex.css")

<div class="widget-body">
    <input id="rootDirectory" type="hidden" value="@ViewBag.rootDirectory" />
    <input id="_mappingDirectory" type="hidden" value="@ViewBag.mappingDirectory" />
    <input id="_serviceDirectory" type="hidden" value="@ViewBag.serviceDirectory" />
    <input id="_webDirectory" type="hidden" value="@ViewBag.webDirectory" />
    <div id="wizard" class="wizard" data-target="#wizard-steps">
        <ul class="steps">
            <li data-target="#step-1" class="active"><span class="step">1</span><span class="lrlg"></span>选择数据表<span class="chevron"></span></li>
            <li data-target="#step-2"><span class="step">2</span><span class="lrlg">信息配置</span><span class="chevron"></span></li>
            <li data-target="#step-3"><span class="step">3</span><span class="lrlg">查看代码</span><span class="chevron"></span></li>
            <li data-target="#step-4"><span class="step">4</span><span class="lrlg">发布功能</span><span class="chevron"></span></li>
        </ul>
    </div>
    <div class="step-content" id="wizard-steps">
        <div class="step-pane step-gird-pane active" id="step-1">
            <div class="btn-tool-bar">
                <div class="lr-layout-tool-item" style="line-height: 28px;">
                    数据库:
</div>
                <div class="lr-layout-tool-item" style="width: 180px;">
                    <div id="dbId" style="border-radius: 4px;"></div>
                </div>
                <div class="lr-layout-tool-item">
                    <input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" />
                </div>
                <div class="lr-layout-tool-item">
                    <a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i>&nbsp;<span class="lrlg">查询</span></a>
                </div>
            </div>
            <div id="dbtablegird"></div>
        </div>
        <div class="step-pane step-pane-base" id="step-2">
            <div class="step-pane-base-top">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><span class="lrlg">功能信息配置</span></h3>
                    </div>
                    <div class="panel-body">
                        <div class="col-xs-6 lr-form-item">
                            <div class="lr-form-item-title">创建人员</div>
                            <input id="createUser" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
                        </div>
                        <div class="col-xs-6 lr-form-item">
                            <div class="lr-form-item-title">功能类名</div>
                            <input id="name" type="text" class="form-control" placeholder="请输入功能类名" isvalid="yes" checkexpession="NotNull" />
                        </div>
                        <div class="col-xs-6 lr-form-item">
                            <div class="lr-form-item-title">功能描述</div>
                            <input id="describe" type="text" class="form-control" placeholder="请输入功能描述" isvalid="yes" checkexpession="NotNull" />
                        </div>
                        <div class="col-xs-6 lr-form-item">
                            <div class="lr-form-item-title">输出区域</div>
                            <div id="outputArea" isvalid="yes" checkexpession="NotNull"></div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="panel panel-default lr-panel">
                <div class="panel-heading">
                    <h3 class="panel-title"><span class="lrlg">输出目录</span></h3>
                </div>
                <div class="panel-body">
                    <div class="col-xs-12 lr-form-item">
                        <div class="lr-form-item-title">映射类输出目录</div>
                        <input id="mappingDirectory" type="text" class="form-control" readonly />
                    </div>
                    <div class="col-xs-12 lr-form-item">
                        <div class="lr-form-item-title">后端类输出目录</div>
                        <input id="serviceDirectory" type="text" class="form-control" readonly />
                    </div>
                    <div class="col-xs-12 lr-form-item">
                        <div class="lr-form-item-title">前端项输出目录</div>
                        <input id="webDirectory" type="text" class="form-control" readonly />
                    </div>
                </div>
            </div>
        </div>
        <div class="step-pane" id="step-3" style="padding-top:49px;">
            <ul class="nav nav-tabs lr-form-tab" id="nav_tabs">
                <li class="active"><a data-value="entityCodediv"><span class="lrlg">实体类</span></a></li>
                <li><a data-value="mapCodediv"><span class="lrlg">实体映射类</span></a></li>
                <li><a data-value="serviceCodediv"><span class="lrlg">服务类</span></a></li>
                <li><a data-value="bllCodediv"><span class="lrlg">业务类</span></a></li>
                <li><a data-value="ibllCodediv"><span class="lrlg">业务接口类</span></a></li>
                <li><a data-value="controllerCodediv"><span class="lrlg">控制器</span></a></li>
                <li><a data-value="indexCodediv"><span class="lrlg">主页面</span></a></li>
                <li><a data-value="indexJsCodediv"><span class="lrlg">主页面JS</span></a></li>
                <li><a data-value="formCodediv"><span class="lrlg">表单页</span></a></li>
                <li><a data-value="formJsCodediv"><span class="lrlg">表单页JS</span></a></li>
            </ul>
            <div class="tab-content" id="tab_content">
                <div id="entityCodediv" class="tab-pane active"><div id="entityCode"></div></div>
                <div id="mapCodediv" class="tab-pane"><div id="mapCode"></div></div>
                <div id="serviceCodediv" class="tab-pane"><div id="serviceCode"></div></div>
                <div id="bllCodediv" class="tab-pane"><div id="bllCode"></div></div>
                <div id="ibllCodediv" class="tab-pane"><div id="ibllCode"></div></div>
                <div id="controllerCodediv" class="tab-pane"><div id="controllerCode"></div></div>
                <div id="indexCodediv" class="tab-pane"><div id="indexCode"></div></div>
                <div id="indexJsCodediv" class="tab-pane"><div id="indexJsCode"></div></div>
                <div id="formCodediv" class="tab-pane"><div id="formCode"></div></div>
                <div id="formJsCodediv" class="tab-pane"><div id="formJsCode"></div></div>
            </div>
        </div>
        <div class="step-pane lr-form-wrap" id="step-4">
            <div class="col-xs-6 lr-form-item">
                <div class="lr-form-item-title">编号<font face="宋体">*</font></div>
                <input id="F_EnCode" type="text" class="form-control" placeholder="请输入编号" isvalid="yes" checkexpession="NotNull" />
            </div>
            <div class="col-xs-6 lr-form-item">
                <div class="lr-form-item-title">名称<font face="宋体">*</font></div>
                <input id="F_FullName" type="text" class="form-control" placeholder="请输入名称" isvalid="yes" checkexpession="NotNull" />
            </div>
            <div class="col-xs-6 lr-form-item">
                <div class="lr-form-item-title">上级</div>
                <div id="F_ParentId"></div>
            </div>
            <div class="col-xs-6 lr-form-item">
                <div class="lr-form-item-title">图标</div>
                <input id="F_Icon" type="text" class="form-control" placeholder="请选择图标" />
                <span id="selectIcon" class="lr-input-button" title="选取图标">...</span>
            </div>
            <div class="col-xs-6 lr-form-item">
                <div class="lr-form-item-title">排序<font face="宋体">*</font></div>
                <input id="F_SortCode" type="text" class="form-control" placeholder="请输入排序号" isvalid="yes" checkexpession="Num" />
            </div>
            <div class="col-xs-6 lr-form-item">
                <div class="lr-form-item-title">选项</div>
                <div class="checkbox">
                    <label>
                        <input id="F_IsMenu" type="checkbox" checked="checked" />
                        <span class="lrlg">菜单</span>
</label>
                    <label>
                        <input id="F_IsPublic" type="checkbox" />
                        <span class="lrlg">公共</span>
</label>
                </div>
            </div>
            <div class="col-xs-12 lr-form-item">
                <div class="lr-form-item-title">描述</div>
                <textarea id="F_Description" class="form-control" style="height: 180px;"></textarea>
            </div>
        </div>
    </div>

    <div class="lr-form-bottom-button" id="wizard-actions">
        <a id="btn_prev" class="btn btn-default btn-prev" disabled><span class="lrlg">上一步</span></a>
        <a id="btn_next" class="btn btn-default btn-next"><span class="lrlg">下一步</span></a>
        <a id="btn_finish" class="btn btn-success" disabled><span class="lrlg">完成</span></a>
    </div>
</div>
@Html.AppendJsFile("/Areas/LR_CodeGeneratorModule/Views/TemplatePC/FastCodeIndex.js")



